# -*- python -*-

## <LeVinTabButton>:
##     size_hint: (1,1)    
##     canvas:
##         Clear
##         Color:
##             rgba: purple4 if self.state != 'normal' else transparent
##         Rectangle:
##             pos: self.pos
##             size: self.size
##         Color:
##             rgba: white
##         Rectangle:
##             pos:  (self.x+2, self.y)
##             size: (self.width-4, self.height-2)
##         Image:
##             size: (root.icon_size,root.icon_size)
##             source: root.icon_src
##             pos: self.pos if self.text !='' else (root.center_x-root.icon_size/2, root.y)
##         Color:
##             rgba: self.color
##         Rectangle:
##             texture: self.texture
##             size: self.texture_size
##             pos: int(self.center_x+ root.icon_size+2*self.padding_x  - self.texture_size[0] / 2.), int(self.center_y - self.texture_size[1] / 2.+self.padding_y)
        
        ## Color:
        ##     rgba: purple4
        ## Rectangle:
        ##     pos: (self.x+2, self.y)
        ##     size: (self.width-4, 2 if self.state != 'normal' else 0)

<AreaDisplay>:
    size_hint: (1,1)
    Image:
        source: root.image_path(root.area)
        
